package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author yyx
 * @date 2022/5/16
 * @desc 专家询标信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_inquiry")
@ApiModel(value = "Inquiry对象", description = "专家询标信息")
public class Inquiry extends MPCommonEntity {

    @ApiModelProperty(value = "标段ID")
    private Long sectionId;

    @ApiModelProperty(value = "专家组评委会id")
    private Long expertGroupId;

    @ApiModelProperty(value = "专家id")
    private Long expertId;

    @ApiModelProperty(value = "问题标题")
    private String title;

    @ApiModelProperty(value = "问题内容")
    private String content;

    @ApiModelProperty(value = "询标回复截止时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replyEndTime;

    /**
     * 状态：1.待发送；2.已发送；3.未处理
     */
    @ApiModelProperty("状态：1.待发送；2.已发送；3.未处理")
    private Integer status;
}
